home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
10,000 Great Games
/
10,000 Great Games.iso
/
Product
/
66
/
data1.cab
/
Source_Files
/
Src
/
Define.h
< prev
next >
Wrap
Text File
|
2000-01-16
|
4KB
|
186 lines
// Profile sections
#define SEC_EDIT "Edit"
#define SEC_PLAYERS "Players"
#define SEC_VIEW "View"
#define SEC_SETTINGS "Settings"
#define SEC_RANDOM "Random Level"
#define SEC_CONTROLS "Controls"
// Windows stuff
#define mainwindow ((CMainFrame *)theApp.m_pMainWnd)
#define mainwindowhandle mainwindow->m_hWnd
#define gamewindow ((CBlasterView *)mainwindow->GetActiveView())
#define gamewindowhandle gamewindow->m_hWnd
// Math constants
#define MAXINT 0x7fffffff
#define MININT -MAXINT
#define MAXFIX 0x7fffff
#define MINFIX -MINFIX
// Colors related
#define getr(c) rgb_table[c].peRed
#define getg(c) rgb_table[c].peGreen
#define getb(c) rgb_table[c].peBlue
#define BLACK RGB(0, 0, 0)
#define GRAY RGB(128, 128, 128)
#define WHITE RGB(255, 255, 255)
#define RED RGB(255, 0, 0)
#define GREEN RGB(0, 255, 0)
#define BLUE RGB(128, 128, 255)
#define YELLOW RGB(255, 255, 0)
#define PINK RGB(255, 0, 255)
#define MASK_COLOR PINK
// Timer related
#define sec 63
#define minute (60 * sec)
#define NOW 0
#define NEVER MAXFIX
// Mouse related
#define MICKEYS_XMAX 150
#define MICKEYS_XHALF 20
#define MICKEYS_XFULL 100
#define MICKEYS_YMAX 150
#define MICKEYS_YHALF 20
#define MICKEYS_YFULL 100
// Division of screen
#define SCREEN_X 640
#define SCREEN_Y 480
#define GAME_X 40
#define GAME_DX 560
#define GAME_DY 480
#define GAME_EDGE 25
#define DIRTY_BLOCK 20
// Level related
#define LEVEL_VERSION 3
#define AUTOSAVE_LEVEL "autosave.bdl"
#define CLIPBOARD_LEVEL "clipboard.bdl"
#define LEVEL_SIZE 20000
#define LEVEL_VTICK 30
#define LEVEL_HTICK 65
#define LEVEL_VJUMP (2 * LEVEL_VTICK)
#define LEVEL_HJUMP (2 * LEVEL_HTICK)
#define LEVEL_VLEVELS (LEVEL_SIZE / LEVEL_VJUMP)
#define SCROLL_STEP 20
#define SCROLL_PAGE 100
#define FAST_SCROLL_ZONE 370
#define NORMAL_SCROLL_ZONE 130
#define MAX_SCROLL_SPEED (2 * CHAR_MAX_JUMP)
#define GRAVITY -250
// Random
#define rnd(max) (rand() % (max))
#define pmrnd(max) (-(max) + 2 * rnd(max))
// Bullets
#define BULLET_SPEED 200
#define BULLET_ACC 100
#define BULLET_FIRE_DELAY (sec / 2)
// Spread gun
#define ROCKET_SPEED 50
#define ROCKET_ACC 100
#define NUM_SPREAD 5
#define SPREAD_FIRE_DELAY sec
// Turret
#define TURRET_ROT_SPEED 40
#define TURRET_FIRE_DLY 1
#define TURRET_DASH_LINE 100
// Rocket
#define NUM_ROCKET 3
#define ROCKET_FIRE_DELAY sec
#define ROCKET_RADIUS 100
// Character
#define CHAR_WALK_SPEED 90
#define CHAR_JUMP_SPEED 178
#define CHAR_MAX_JUMP ((CHAR_JUMP_SPEED * CHAR_JUMP_SPEED) / (-2 * GRAVITY))
#define CHAR_CLIMB_SPEED 120
#define CHAR_VBUBBLE 120
#define CHAR_RVBUBBLE 40
#define CHAR_KICK_POWER 35
#define CHAR_KICK_APOWER 50
#define CHAR_KICK_DLY sec
#define CHAR_INVULNERABLE (3 * sec)
#define CHAR_HEIGHT 45
#define CHAR_TEXT_DISTANCE (CHAR_HEIGHT + 10)
// Constants for last move
#define CHAR_LEFT -1
#define CHAR_RIGHT 1
// Bubbles
#define BUBBLE_VSPEEDC 40
#define BUBBLE_VSPEEDR 30
#define BUBBLE_HSPEEDR 10
#define BUBBLE_EXPLODE_ZONE 100
#define BUBBLE_CHANGE (3 * sec)
// Mines
#define MINE_FIRE_DELAY sec
#define MINE_DELAY (2 * sec)
#define MINE_RADIUS 100
#define NUM_MINES 5
// Jetpack
#define JETPACK_TIME (5 * sec)
#define JETPACK_SPEED 80
// Thumper
#define THUMPER_FIRE_DELAY (2 * sec)
#define THUMPER_DELAY (2 * sec)
#define THUMPER_RADIUS 30
#define NUM_THUMPER 3
// Black holes
#define BLACK_HOLE_STRENGTH 500
// Controls
#define KEY_BUFFERSIZE 32
#define KEY_DCLICKTIME 300
#define MOUSE_BUFFERSIZE 32
#define MOUSE_DCLICKTIME 300
#define JOY_MAX 1000
#define JOY_MIN -1000
#define JOY_DEAD 5000
#define SELECTION_NONE "<None>"